<template>
  <div class="mineBean">
    <div class="title">
      <i class="iconfont icon-xiangzuo" @click="$router.go(-1),change()"></i>
      <div class="story">我的钱包</div>
    </div>

    <div class="mineBeanContent">
      <div class="mBeanHead">
        <div class="left">
          <i class="iconfont icon-icon_jindou"></i>
          <div class="font">
            <h1>0</h1>
            <p>书豆余额</p>
          </div>
        </div>
        <div class="right" @click="$router.push('/bookBean')">充值</div>
      </div>
      <div class="bean" @click="$router.push('/BeanTicket')">
        <div class="mineTiket">
          <div class="icon">
            <i class="iconfont icon-qiaquan"></i>
            <p>豆券: <span>0</span>张(0书豆)</p>
          </div>
          <i class="iconfont icon-gengduo"></i>
        </div>
      </div>
      <div class="mBeanBtm">
        <ul>
          <li>
            <div class="icon">
              <i class="iconColor1 iconfont icon-lishijilu"></i>
              <p>充值记录</p>
            </div>
            <i class="iconfont icon-gengduo"></i>
          </li>

          <li>
            <div class="icon">
              <i class="iconColor2 iconfont icon-shu"></i>
              <p>消费记录</p>
            </div>
            <i class="iconfont icon-gengduo"></i>
          </li>

          <li>
            <div class="icon">
              <i class="iconColor3 iconfont icon-shang"></i>
              <p>打赏记录</p>
            </div>
            <i class="iconfont icon-gengduo"></i>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    change() {
      this.$emit("getnavs-btn", true);
    },
  },
  created() {
    this.$emit("getnavs-btn", false);
  },
};
</script>

<style lang="less">
.mineBean {
  width: 100%;
  height: 100vh;
  .title {
    position: fixed;
    width: 100%;
    min-height: 50px;
    display: flex;
    background-color: #fff;
    z-index: 1;
    i {
      flex: 0 0 40px;
      text-align: center;
      line-height: 50px;
      font-size: 20px;
    }
    .story {
      flex: 1;
      text-align: center;
      line-height: 50px;
      font-size: 18px;
      padding-right: 40px;
    }
  }
  .mineBeanContent {
    padding-top: 50px;
    .mBeanHead {
      margin-top: 10px;
      padding: 15px;
      display: flex;
      justify-content: space-between;
      background-color: #fff;
      .left {
        display: flex;
        i {
          font-size: 80px;
          color: orange;
        }
        .font {
          font-weight: 600;
          text-align: center;

          h1 {
            font-size: 40px;
            padding-top: 10px;
          }
          p {
            font-size: 16px;
            padding-top: 10px;
          }
        }
      }
      .right {
        width: 80px;
        height: 35px;
        background-color: rgb(35, 179, 130);
        color: #fff;
        border-radius: 8px;
        text-align: center;
        line-height: 35px;
        margin-top: 25px;
      }
    }
    .bean {
      background-color: #fff;
      margin: 10px 0;
      padding: 20px 10px;
      .mineTiket {
        display: flex;
        justify-content: space-between;
        // align-items: baseline;
        .icon {
          display: flex;
          // align-items: baseline;
          i {
            font-size: 22px;
            margin-right: 15px;
            color: rgb(35, 179, 130);
          }
        }
        i {
          font-size: 18px;
        }
      }
    }
    .mBeanBtm {
      background-color: #fff;
      ul {
        li {
          display: flex;
          justify-content: space-between;
          padding: 20px 10px;
          .icon {
            display: flex;
            i {
              font-size: 22px;
              margin-right: 15px;
            }
            .iconColor1 {
              color: blue;
            }
            .iconColor2 {
              color: rgb(35, 179, 130);
            }
            .iconColor3 {
              color: orange;
            }
          }
          i {
            font-size: 18px;
          }
        }
      }
    }
  }
}
</style>